import { requestClient } from '#/api/request';


/**
 * 获取热门搜索数据
 */
export async function getHotSearchApi() {
  return requestClient.get('/system/open/get-newest-data');
}

/**
 * 搜索埋点数据
 */
export interface SearchTrackData {
  keyword: string;
}

/**
 * 发送搜索埋点数据
 */
export async function trackSearchApi(data: SearchTrackData): Promise<void> {
  return requestClient.post('/system/open/add-new-keyWord', data);
}
